package online.sixfish.question.service.impl;

import online.sixfish.question.mapper.RecordMapper;
import online.sixfish.judger.pojo.SubmitRecord;
import online.sixfish.question.service.RecordServer;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

//@Service
public class RecordServerImpl implements RecordServer {
    @Autowired
    private RecordMapper recordMapper;



    @Override
    public List<SubmitRecord> getSubmitRecordList(long uid, long qid, int page) {
        page--;
        return recordMapper.getSubmitRecordList(uid,qid,page);
    }

    @Override
    public List<SubmitRecord> getSubmitRecordList(long qid, int page) {
        page--;
        return recordMapper.getSubmitRecordListWithQid(qid,page);
    }

    @Override
    public List<SubmitRecord> getSubmitRecordListWithUid(long uid, int page) {
        page--;
        return recordMapper.getSubmitRecordListWithUid(uid,page);
    }


}
